package com.cnunicom.modules.tra.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 房型表
 *
 * @author dzygod
 * @email dingziyuan0@gmail.com
 * @date 2020-01-06 11:06:17
 */
@Data
@TableName("tra_room_type")
public class RoomTypeEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "房型主键")
    @TableId
    private Integer id;

    @ApiModelProperty(value = "楼/楼层")
    @NotBlank(message = "楼/楼层为空")
    private String floor;

    @ApiModelProperty(value = "房类")
    @NotBlank(message = "房类为空")
    private String name;

    @ApiModelProperty(value = "价格")
    @NotNull(message = "价格未输入")
    private BigDecimal price;

    @ApiModelProperty(value = "节日价格")
    @NotNull(message = "节日价格不能为空")
    private BigDecimal disPrice;

    @ApiModelProperty(value = "类型")
    private Integer type;

    @ApiModelProperty(value = "父id")
	private Integer parentId;

    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @ApiModelProperty(value = "修改时间")
    private String updateTime;

    @ApiModelProperty(value = "逻辑删除 -1：已删除  0：未删除")
    @TableLogic
    private Integer isDel;
    /**
     * 自定义字段
     */
    private String def0;
    /**
     * 自定义字段
     */
    private String def1;

}
